﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using XXX.Bo;
using XXX.Models.XXXEntities;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace XXX.api.Controllers
{
    /// <summary>
    /// 送样系统，获取项目编码
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class QC_GetXMPersonByNameController : ControllerBase
    { 
        private readonly ILogger<QC_GetXMPersonByNameController> _logger;
        public QC_GetXMPersonByNameController(ILogger<QC_GetXMPersonByNameController> logger)
        { 
            _logger = logger;
        } 

        [HttpGet]
        public Models.RetModel<QC_Person> Get(string Name)
        {
            //_logger.LogInformation((model));
            Models.RetModel<QC_Person> ret = DBService.QC_GetPersonByName(Name);
            return ret;
        }

       

    }
}
